<?php 
/* SVN FILE: $Id$ */
/* Aviso Test cases generated on: 2010-01-17 23:19:06 : 1263791946*/
App::import('Model', 'Aviso');

class AvisoTestCase extends CakeTestCase {
	var $Aviso = null;
	var $fixtures = array('app.aviso', 'app.ciclo', 'app.usuario');

	function startTest() {
		$this->Aviso =& ClassRegistry::init('Aviso');
	}

	function testAvisoInstance() {
		$this->assertTrue(is_a($this->Aviso, 'Aviso'));
	}

	function testAvisoFind() {
		$this->Aviso->recursive = -1;
		$results = $this->Aviso->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Aviso' => array(
			'id'  => 1,
			'fecha'  => '2010-01-17 23:19:06',
			'titulo'  => 'Lorem ipsum dolor sit amet',
			'contenido'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'ciclo_id'  => 1,
			'usuario_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>